import request from '@/utils/request'

// 获取楼宇列表
export function getBuildingList(params) {
    return request({
        url: '/park/building',
        method: 'get',
        params
    })
    }


//楼宇修改
export function editBuilding(data) {
    return request({
        url: '/park/building',
        method: 'put',
        data
    })
    }    

//楼宇删除
export function deleteBuilding(id) {
    return request({
        url: `/park/building/${id}`,
        method: 'delete',
       
    })
    }    

//楼宇新增
export function addBuilding(data) {
    return request({
        url: '/park/building',
        method: 'post',
        data
    })
    }    

//楼宇详情查询
export function getBuildingDetail(id) {
    return request({
        url: `/park/building/${id}`,
        method: 'get',
       
    })
    }    